package pers.lance.mvcrest.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @ Author     ：LILA3
 * @ Date       ：Created in 5:19 PM 7/25/2018
 */
public class Book {
    private String id;
    private String bname;
    private double price;
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date pressDate;
    private String author;

    public Book() {
    }

    public Book(String id, String bname, double price, Date pressDate, String author) {
        this.id = id;
        this.bname = bname;
        this.price = price;
        this.pressDate = pressDate;
        this.author = author;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getBname() {
        return bname;
    }

    public void setBname(String bname) {
        this.bname = bname;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public Date getPressDate() {
        return pressDate;
    }

    public void setPressDate(Date pressDate) {
        this.pressDate = pressDate;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }
}
